#include"list1.cpp"
void BaseA::setA(int x, int y, int z)
{
	a1 = x;
	a2 = y;
	a3 = z;
}
void BaseA::showA()
{
	cout << " a1=" << a1;
	cout << " a2=" << a2;
	cout << " a3=" << a3 << endl;
}
void BaseB::setB(int x, int y, int z)
{
	b1 = x;
	b2 = y;
	b3 = z;
}
void BaseB::showB()
{
	cout << "b1=" << b1;
	cout << "b2=" << b2;
	cout << "b3=" << b3<<endl;
}
void BaseC::setC(int x, int y, int z)
{
	c1 = x;
	c2 = y;
	c3 = z;
}
void BaseC::showC()
{
	cout << "c1=" << c1;
	cout << "c2=" << c2;
	cout << "c3=" << c3 << endl;
}
void Derived::setD(int x, int y, int z)
{
	d1 = x;
	d2 = y;
	d3 = z;
}
void Derived::showD()
{
	cout << "d1=" << d1;
	cout << "d2=" << d2;
	cout << "d3" << d3 << endl;
}
void Derived::setall(int x0, int x1, int x2, int x3, int x4, int x5, int x6, int x7, int x8, int x9, int x10, int x11)
{
	setA(x0, x1, x2);
	setB(x3,x4,x5);
	setC(x6, x7, x8);
	setD(x9, x10, x11);
}
void Derived::showall()
{
	showA();
	showB();
	showC();
	showD();
}
